#ifndef __STRINGKEY_H__
#define __STRINGKEY_H__

#include <iostream>
#include <fstream>
using namespace std;

static enum {LESS = -1, EQ, GREAT};

class StringKey
{
	char* m_stringKey;

	StringKey(const StringKey&);
public:
	// Geters
	char* GetKey() const {return m_stringKey;}
	// Seters
	void SetKey(const char* key);

	int Compare(const StringKey& s); // compare 2 stringKeys
	StringKey* Read(ifstream &file); // read stringKey from file
	StringKey* Read(); // read stringKey from keyboard
	bool operator==(const StringKey &otherKey) const;
	void Print();

	StringKey(void): m_stringKey(NULL) {}
	StringKey(const char* key);
	virtual ~StringKey(void);
};

#endif